using System;
using System.Collections.Generic;
using System.Text;
using BusinessObjects.BO_Actions;
using Entity.StoreProcedure;
using BusinessObjects;
using System.Data;
namespace BusinessObjects.BO_GetObjects {
	public static class BO_cms_users_in_roles {
		public static DataTable SelectAll() {
			try {
				usp_cms_users_in_roles_select_all entity = new usp_cms_users_in_roles_select_all();

				return BO_Actions<usp_cms_users_in_roles_select_all>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static DataTable SelectTop(int rows) {
			try {
				usp_cms_users_in_roles_select_top entity = new usp_cms_users_in_roles_select_top();
				entity.NUMBERRECORD = rows;

				return BO_Actions<usp_cms_users_in_roles_select_top>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static string Insert( int user_id, int admin_module_id) {
			try {
				usp_cms_users_in_roles_insert entity = new usp_cms_users_in_roles_insert();
                entity.USER_ID = user_id;
                entity.ADMIN_MODULE_ID = admin_module_id;

				return BO_Actions<usp_cms_users_in_roles_insert>.ExecuteAndReturnStringValue(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
	}
}

